package com.provider.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.provider.dao.TProductTaskDao;
import com.provider.entity.TProductStory;
import com.provider.entity.TProductTask;
import com.provider.service.TProductTaskService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 产品Task任务(TProductTask)表服务实现类
 *
 * @author makejava
 * @since 2024-04-29 11:22:56
 */
@Service("tProductTaskService")
@Transactional(rollbackFor = Exception.class)
public class TProductTaskServiceImpl extends ServiceImpl<TProductTaskDao, TProductTask> implements TProductTaskService {

    @Override
    public List<TProductTask> queryProductTask(String systemId) {
        LambdaQueryWrapper<TProductTask> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(TProductTask::getSystemId,systemId).eq(TProductTask::getIsValid,"Y");
        return this.list(lambdaQueryWrapper);
    }
}

